﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace BoriPeter.FatSecret.Models
{
    [XmlRoot("month", Namespace = "http://platform.fatsecret.com/api/1.0/")]
    public class ExcerciseEntriesGetMonthModel
    {
        /// <summary>
        /// is an Int – the first day in the nominated month, see dateint.
        /// </summary>
        [XmlElement("from_date_int")]
        public int FromDateInt { get; set; }

        /// <summary>
        /// is an Int – the last day in the nominated month, see dateint.
        /// </summary>
        [XmlElement("to_date_int")]
        public int ToDateInt { get; set; }

        /// <summary>
        /// Each day element contains summary nutritional information for a single day.
        /// </summary>
        [XmlElement("day")]
        public ExcerciseEntriesGetMonthDay[] Days { get; set; }
    }

    public class ExcerciseEntriesGetMonthDay
    {
        /// <summary>
        /// date_int is an Int – the day of the month, see dateint.
        /// </summary>
        [XmlElement("date_int")]
        public int DateInt { get; set; }

        /// <summary>
        /// is an Decimal – the total daily estimated energy expended in kcal.
        /// </summary>
        [XmlElement("calories")]
        public decimal Calories { get; set; }
    }
}
